package Ajedrez.visual.Tablero;

import java.awt.GridLayout;

import javax.swing.*;

public class Relojes extends JPanel
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	RelojDigital Blancas;
	RelojDigital Negras;
	
	public Relojes(String s1, String s2)
	{
		Blancas = new RelojDigital(s1);
		Negras = new RelojDigital(s2);
		
		this.setLayout(new GridLayout(2, 1));
		this.add(Blancas);
		this.add(Negras);
		this.setSize(300, 200);
	}
	
	
	public static void main(String[] args)
	{
		JFrame f = new JFrame();
		f.add(new Relojes("Blancas", "Negras"));
		f.setVisible(true);
	}
}
